package com.finance.scheduler.responsexml;


import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/4/24.
 */
@XmlRootElement(name = "response")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder = {"errorCode", "message", "pullLogisticsList" })
public class PullData {
    @XmlElement(name = "errorCode")
    private String errorCode;

    @XmlElement(name = "message")
    private String message;

    @XmlElementWrapper(name="orderList")
    @XmlElement(name = "order")
    private List<PullLogistics> pullLogisticsList;

    public List<PullLogistics> getPullLogisticsList()
    {
        if(pullLogisticsList == null)
        {
            pullLogisticsList = new ArrayList<PullLogistics>();
        }
        return pullLogisticsList;
    }

    public void setPullLogisticsList(List<PullLogistics> pullLogisticsList) { this.pullLogisticsList = pullLogisticsList;}

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
